/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.camachosanchez.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Rolando
 */
public class JPAUtil {

    private static final EntityManagerFactory emf;

    static {
        try {
            emf = Persistence.createEntityManagerFactory("TireSoftPU");
        } catch (Throwable t) {
            t.printStackTrace();
            throw new ExceptionInInitializerError();
        }
    }

    public static EntityManagerFactory getEntityManagerFactory() {
        return emf;
    }
}
